<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionEmpleado.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTbldivisionesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">

            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTbldivisionesTitle}">
                     <p:messages id="msgs"/>
                <h:panelGrid columns="2">
                    
                       
                        <h:outputLabel value="#{bundle.CreateTbldivisionesLabel_codDivisiones}" for="codDivisiones" />
                        <p:inputText id="codDivisiones" value="#{tbldivisionesController.selected.codDivisiones}" title="#{bundle.CreateTbldivisionesTitle_codDivisiones}" required="true" requiredMessage="#{bundle.CreateTbldivisionesRequiredMessage_codDivisiones}"/>
                        <h:outputLabel value="#{bundle.CreateTbldivisionesLabel_nomDivisiones}" for="nomDivisiones" />
                        <p:inputText id="nomDivisiones" value="#{tbldivisionesController.selected.nomDivisiones}" title="#{bundle.CreateTbldivisionesTitle_nomDivisiones}" required="true" requiredMessage="#{bundle.CreateTbldivisionesRequiredMessage_nomDivisiones}"/>
                        
                </h:panelGrid>
                
                <p:commandButton action="#{tbldivisionesController.create}" update="panel" value="#{bundle.CreateTbldivisionesSaveLink}" />
             
                <p:commandButton action="#{tbldivisionesController.prepareList}" value="#{bundle.CreateTbldivisionesShowAllLink}" immediate="true"/>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
